﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using dotnethost.Models;

namespace dotnethost.ViewModels
{
    public class UserProfileViewModel
    {
        public string Email { get; set; }
        public string FullName { get; set; }
        public UserProfileViewModel()
        { }
        public UserProfileViewModel(UserProfile profile)
        {
            Email = profile.Email;
            FullName = profile.FullName;
        }
        public void Save()
        {
            UserProfile profile = UserProfile.CurrentUserProfile;
            profile.Email = Email;
            profile.FullName = FullName;
            profile.Save();
        }
    }
}